﻿<UserControl x:Class="WorkSpace.UI.Controls.LinkPart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Height="120"
    Width="120">
    
    <Grid x:Name="LayoutRoot">
        <HyperlinkButton Name="_ctlBtn" Click="_ctlBtn_Click" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <Grid>
                <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Image Name="_ctlImage" Width="75" Height="75" Margin="0,20,0,0"/>
                    <TextBlock Name="_ctlText" Text="Caption" Margin="0,5,0,0" HorizontalAlignment="Center"/>
                </StackPanel>
                <Grid Name="_ctlGridTask" Margin="0,15,15,0" Width="24" Height="24" HorizontalAlignment="Right" VerticalAlignment="Top">
                    <Border CornerRadius="12" BorderThickness="2" BorderBrush="Black">
                        <Border.Effect>
                            <BlurEffect Radius="3"/>
                        </Border.Effect>
                    </Border>
                    <Border CornerRadius="12" BorderThickness="2" BorderBrush="White">
                        <Border.Background>
                            <RadialGradientBrush>
                                <GradientStop Color="#FFC70808" Offset="0" />
                                <GradientStop Color="#FFE56A6A" Offset="1" />
                            </RadialGradientBrush>
                        </Border.Background>
                    </Border>
                    <TextBlock Name="_ctlTxtTaskCount" Text="12" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="11" Foreground="White" />
                </Grid>
            </Grid>
        </HyperlinkButton>
    </Grid>
</UserControl>
